home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cpptutor.arc / BOX.HPP < prev    next >
Text File  |  1991-04-28  |  375b  |  19 lines

  1.                                  // Chapter 5 - Program 7
  2.  
  3. class box {
  4.    int length;
  5.    int width;
  6. public:
  7.    box(void);         //Constructor
  8.    void set(int new_length, int new_width);
  9.    int get_area(void) {return (length * width);}
  10.    ~box(void);        //Destructor
  11. };
  12.  
  13.  
  14.  
  15.  
  16. // Result of execution
  17. //
  18. // This header file cannot be compiled or executed
  19.